#!/bin/bash
if [ "$1" == "" ]
  then
  echo "print input 4 or 32"  
  exit 1
elif [ "$1" == "4" ]
  then
  for i in {1..9}
  do
    cinder create 200 --name 4k --metadata pageSize=4096
  done
elif [ "$1" == "32" ]
  then
  for i in {1..9}
  do
  cinder create 500 --name 32k --metadata pageSize=32768
  done
fi
